package com.hbyj.object;

import com.hbyj.hbm.vo.Departments;

public class DepartmentData {
	private int id;
	private String name;
	
	public DepartmentData(int id,String name){
		this.id =id;
		this.name = name;
	}
	public DepartmentData(Departments hiberObj){
		this.id=hiberObj.getId();
		this.name = hiberObj.getName();
	}
	public void setId(int id) {
		this.id = id;
	}
	public int getId() {
		return id;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		return name;
	}
}
